package com.lanhe.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lanhe.order.domain.LhOrdersHaokaLog;
import com.lanhe.order.mapper.LhOrdersHaokaLogMapper;
import com.lanhe.order.service.ILhOrdersHaokaLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * 号卡订单回调日志表(LhOrdersHaokaLog)表服务实现类
 *
 * @author zhanggl
 * @since 2023-12-25 20:19:30
 */
@Service
public class LhOrdersHaokaLogServiceImpl extends ServiceImpl<LhOrdersHaokaLogMapper, LhOrdersHaokaLog> implements ILhOrdersHaokaLogService {

	@Autowired
	private LhOrdersHaokaLogMapper lhOrdersHaokaLogMapper;

	@Override
	public void insertOrdersHaokaLog(LhOrdersHaokaLog lhOrdersHaokaLog) {
		lhOrdersHaokaLog.setCreateTime(new Date());
		lhOrdersHaokaLogMapper.insert(lhOrdersHaokaLog);
	}

	@Override
	public void updateOrdersHaokaLog(LhOrdersHaokaLog ordersHaokaLog) {
		lhOrdersHaokaLogMapper.updateById(ordersHaokaLog);
	}
}

